package com.shiguiwu.springmybatis.spring.lifecycle.destroy;

import org.springframework.beans.factory.DisposableBean;
import sun.java2d.pipe.SpanIterator;

import javax.annotation.PreDestroy;

/**
 * @description:
 * @author: stone
 * @date: Created by 2021/3/28 15:19
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.spring.lifecycle.destroy
 */
public class A implements DisposableBean {



    @PreDestroy
    public void preDestroy() {
        System.out.println("preDestroy() ");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("destroy() ");
    }



    public void destroy1() throws Exception {
        System.out.println("destroy1() 自定义的。。。。。。。。 ");
    }

}
